package CustomUI;

import java.util.ArrayList;
import java.util.List;

import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnTouchListener;

public class ydOnTouchListeners implements View.OnTouchListener {

	List<View.OnTouchListener> listeners;
	
	public ydOnTouchListeners(){
        listeners = new ArrayList<View.OnTouchListener>();
    }

    public void addOnTouchListener(View.OnTouchListener listener){
        listeners.add(listener);
    }
	
	@Override
	public boolean onTouch(View v, MotionEvent event) {
		   for(View.OnTouchListener listener : listeners){
	           listener.onTouch(v, event);
	        }
	        
	        return true;
	}

}
